//
//  AppController.h
//  CoversEverywhere
//
//  Created by Pablo Roulet on 17/05/09.
//  Copyright 2009 Pablo Roulet. All rights reserved.
//  #import <ID3Panel/ID3Panel.h>

#import <Cocoa/Cocoa.h>
#import <ID3/TagAPI.h>

@interface AppController : NSObject {
	IBOutlet NSWindow *mainWindow;
	IBOutlet NSButton *btOpen;
	IBOutlet NSButton *btCancel;
	IBOutlet NSMenuItem *itemOpen;
	IBOutlet NSTextField *tfProgreso;
	
	IBOutlet NSWindow *searchSheet;
	IBOutlet NSProgressIndicator *prSearching;
	IBOutlet NSTextField *tfSearching;
	
	int progBarTotal;
	int progBarValue;
	
	BOOL exitThread;
	BOOL threadRunning;
}

- (IBAction)showOpenPanel:(id)sender;
- (IBAction)stopUpdates:(id)sender;
- (IBAction)tryQuitApplication:(id)sender;

- (void)startThread:(NSArray *)files;
- (NSArray *)searchFiles:(NSArray *)files;
- (void)editFiles:(NSArray *)files;

- (void)updateProgLabel;
- (void)setProgBarTotal:(int)total;
- (void)increaseProgBarValue;
- (void)deactivateProgBar;
- (void)quitApplication;
@end
